package com.dcy.seatastorage.biz.dtomapper;

import com.dcy.seatastorage.biz.dto.input.StorageTblCreateInputDTO;
import com.dcy.seatastorage.biz.dto.input.StorageTblSearchInputDTO;
import com.dcy.seatastorage.biz.dto.input.StorageTblUpdateInputDTO;
import com.dcy.seatastorage.biz.dto.output.StorageTblListOutputDTO;
import com.dcy.seatastorage.api.model.StorageTbl;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @Author：dcy
 * @Description:  转换类
 * @Date: 2021-04-23
 */
@Mapper(componentModel = "spring")
public interface MStorageTblMapper {

    StorageTbl toStorageTbl(StorageTblSearchInputDTO storageTblSearchInputDTO);

    StorageTbl toStorageTbl(StorageTblCreateInputDTO storageTblCreateInputDTO);

    StorageTbl toStorageTbl(StorageTblUpdateInputDTO storageTblUpdateInputDTO);

    StorageTblListOutputDTO toList(StorageTbl storageTbl);

    List<StorageTblListOutputDTO> toList(List<StorageTbl> storageTbls);
}